package com.linsen.erp.admin.provider.vo;

import com.linsen.core.common.tree.TreeNodeAbstract;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description:
 * @ProjectName: erp
 * @Package: com.linsen.erp.admin.provider.vo
 * @ClassName: DeptVo
 * @Author: zhaoyong
 * @Email: zy765203718@gmail.com
 * @Date: 2023/7/24 18:00
 * @Version: 1.0
 */
@Data
@ApiModel("部门VO")
public class DeptVO extends TreeNodeAbstract<DeptVO> implements Serializable {
    @ApiModelProperty("部门id")
    private String id;
    @ApiModelProperty("上级部门id")
    private String pid;
    @ApiModelProperty("上级部门名称")
    private String parentName;
    @ApiModelProperty("部门名称")
    private String name;
    @ApiModelProperty("部门名称path（全路径）")
    private String path;
    @ApiModelProperty("类型：1，总部；2，区域；3，公司；4，部门")
    private Integer type;
    @ApiModelProperty("负责人（员工）id")
    private String leaderId;
    @ApiModelProperty("负责人（员工）信息（冗余）")
    private EmployeeVO leaderVO;
    @ApiModelProperty("优先级")
    private Integer priority;

    @ApiModelProperty("创建操作人")
    private String createBy;
    @ApiModelProperty("创建操作人username")
    private String createByName;
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty("更新操作人")
    private String updateBy;
    @ApiModelProperty("更新操作人username")
    private String updateByName;
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}
